package com.martin.lib_base.common

import android.view.View
import com.martin.lib_base.R
import com.martin.lib_base.annotation.ItemData
import com.martin.lib_base.base.BaseViewHolder
import com.martin.lib_base.databinding.ItemEmptyCommonBinding
import com.martin.lib_base.interfaces.IItemData
import com.martin.lib_base.interfaces.ITypeBean

/**
 * @desc：通用空数据item
 */
@ItemData(CommonEmptyViewHolder.Companion.ItemData::class)
class CommonEmptyViewHolder(view: View) : BaseViewHolder<ITypeBean, ItemEmptyCommonBinding>(view) {

    override fun onBindViewHolder(position: Int, item: Any?) {

    }

    companion object {
        class ItemData : IItemData {
            override fun getItemLayoutId() = R.layout.item_empty_common

            override fun getItemType() = ITypeBean.ITEM_TYPE_EMPTY
        }
    }
}